package bb.lanxing.mvp.model;

import bb.lanxing.model.database.RouteBook;
import bb.lanxing.mvp.model.i.IRouteMapModel;
import rx.Observable;
import rx.schedulers.Schedulers;

public class RouteMapModelImpl implements IRouteMapModel {
    @Override
    public Observable<RouteBook> queryRoute(long lushuId) {
        return Observable.just(lushuId).subscribeOn(Schedulers.io()).map(RouteBook::getById);
    }
}
